/*
 * =====================================================================================
 *
 *       Filename:  testCompl.cpp
 *
 *    Description:  Temporary test
 *
 *        Version:  1.0
 *        Created:  10/07/12 13:54:12
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Moos Hueting (mh), mooshueting@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#include <iostream>
#include <cv.h>
#include <highgui.h>
#include "features/char_features.h"

using namespace std;
using namespace cv;

int main(int argc, char* argv[]) {
    Mat image = imread( argv[1], CV_LOAD_IMAGE_GRAYSCALE );
    threshold(image, image, 100, 255, THRESH_BINARY);
    //resize(image, image, Size(0,0), 10, 10, INTER_NEAREST);

    cout << complexity(image) << endl;
}
